:root {
    --primary-color: #ffffff;  /* 白色，用于文字 */
    --secondary-color: #d4af37; /* 警徽金色 */
    --accent-color: #d4af37;   /* 警徽金色 */
    --background: transparent;     /* 透明背景 */
    --form-background: rgba(0, 0, 0, 0.6); /* 半透明黑色背景用于表单 */
    --input-background: rgba(255, 255, 255, 0.9); /* 输入框背景 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    display: flex;
    justify-content: flex-end; /* 将内容对齐到右侧 */
    align-items: center;
    min-height: 100vh;
    background-image: url('images/prison_background1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-right: 50px; /* 添加右边距，避免内容紧贴边缘 */
}

.form-container {
    background: transparent;
    padding: 50px;
    width: 100%;
    max-width: 480px;
    margin: 20px 0; /* 调整外边距 */
    color: white;
}

.form-container::before {
    content: none;
}

.form-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    font-weight: bold;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c5d0e0;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
    background-color: var(--input-background);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42,75,141,0.1);
}

/* 密码可见性切换 */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 14px;
}

.btn {
    background-color: var(--secondary-color);
    color: #1a3e72;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn:hover {
    background-color: #e6c052; /* 更亮的金色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    border-left: 4px solid;
}

.alert-danger {
    background-color: rgba(255, 0, 0, 0.3);
    border-left-color: #d92d20;
    color: white;
}

.nav-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.nav-link a,
.register-link a,
.login-link a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.nav-link a::after,
.register-link a::after,
.login-link a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link a:hover::after,
.register-link a:hover::after,
.login-link a:hover::after {
    width: 100%;
}

/* 表单标题 */
.form-title {
    width: 60px;
    height: 60px;
    fill: var(--accent-color);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}